home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / GameboyDev / GBDK / lib / sprint.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-03-29  |  148 b   |  15 lines

  1. #include <stdio.h>
  2.  
  3. UBYTE sprint(char *s, char *str)
  4. {
  5.   UBYTE n = 0;
  6.  
  7.   while(*str) {
  8.     *(s++) = *(str++);
  9.     n++;
  10.   }
  11.   *s = 0;
  12.  
  13.   return n;
  14. }
  15.